<?php


namespace app\common\validate;


class ArticleValidate extends BaseValidate
{
    protected $rule = [
        'title'  => 'require|min:1|max:100',
        'content' => 'require',
        'category_id' => 'require'
    ];

    protected $message = [
        'title' => '标题必须是1～100个字符',
        'content' => '文章内容不能为空',
        'category_id' => '文章分类不能为空'
    ];
}